<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>联系商家 - 外卖APP</title>
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.10.0/font/bootstrap-icons.css">
    <style>
        :root {
            --primary-color: #2563eb;
            --secondary-color: #3b82f6;
            --accent-color: #f59e0b;
            --text-primary: #1f2937;
            --text-secondary: #4b5563;
            --background-light: #f8fafc;
            --success-color: #10b981;
            --warning-color: #f59e0b;
            --danger-color: #ef4444;
        }

        body {
            margin: 0;
            padding: 0;
            background: #f5f5f5;
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
        }

        .phone-container {
            width: 390px;
            height: 844px;
            margin: 20px auto;
            background: var(--background-light);
            position: relative;
            overflow: hidden;
            box-shadow: 0 0 20px rgba(0,0,0,0.1);
            border-radius: 40px;
        }

        .content {
            height: 100%;
            overflow-y: auto;
            padding-bottom: 80px;
        }

        .content::-webkit-scrollbar {
            width: 0;
        }

        .header {
            padding: 15px;
            background: white;
            position: sticky;
            top: 0;
            z-index: 100;
            display: flex;
            align-items: center;
            gap: 15px;
            border-bottom: 1px solid rgba(0,0,0,0.05);
        }

        .back-button {
            width: 32px;
            height: 32px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--text-primary);
            text-decoration: none;
        }

        .header-title {
            font-size: 18px;
            font-weight: 600;
            color: var(--text-primary);
            flex: 1;
        }

        .merchant-card {
            background: white;
            padding: 20px;
            display: flex;
            align-items: center;
            gap: 15px;
            margin-bottom: 15px;
        }

        .merchant-logo {
            width: 60px;
            height: 60px;
            border-radius: 8px;
            object-fit: cover;
        }

        .merchant-info {
            flex: 1;
        }

        .merchant-name {
            font-size: 16px;
            font-weight: 500;
            color: var(--text-primary);
            margin-bottom: 4px;
        }

        .merchant-desc {
            font-size: 14px;
            color: var(--text-secondary);
        }

        .contact-section {
            background: white;
            padding: 20px;
            margin-bottom: 15px;
        }

        .section-title {
            font-size: 16px;
            font-weight: 500;
            color: var(--text-primary);
            margin-bottom: 15px;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .contact-item {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 12px 0;
            border-bottom: 1px solid #f3f4f6;
        }

        .contact-item:last-child {
            border-bottom: none;
        }

        .contact-info {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .contact-icon {
            width: 40px;
            height: 40px;
            border-radius: 20px;
            background: var(--background-light);
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--primary-color);
        }

        .contact-text {
            font-size: 14px;
            color: var(--text-primary);
        }

        .contact-action {
            padding: 8px 20px;
            border-radius: 16px;
            background: var(--primary-color);
            color: white;
            font-size: 14px;
            border: none;
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .contact-action:hover {
            opacity: 0.9;
        }

        .faq-item {
            padding: 15px;
            background: white;
            margin-bottom: 1px;
            cursor: pointer;
        }

        .faq-question {
            display: flex;
            align-items: center;
            justify-content: space-between;
            font-size: 14px;
            color: var(--text-primary);
        }

        .faq-answer {
            display: none;
            margin-top: 10px;
            font-size: 14px;
            color: var(--text-secondary);
            padding-top: 10px;
            border-top: 1px solid #f3f4f6;
        }

        .faq-item.active .faq-answer {
            display: block;
        }

        .bottom-bar {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            padding: 15px;
            background: white;
            border-top: 1px solid #f3f4f6;
        }

        .chat-button {
            width: 100%;
            padding: 14px;
            border-radius: 24px;
            background: var(--primary-color);
            color: white;
            font-size: 16px;
            border: none;
            cursor: pointer;
            transition: all 0.2s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
        }

        .chat-button:hover {
            opacity: 0.9;
        }
    </style>
</head>
<body>
    <div class="phone-container">
        <div class="content">
            <div class="header">
                <a href="order-detail.html" class="back-button">
                    <i class="bi bi-chevron-left"></i>
                </a>
                <div class="header-title">联系商家</div>
            </div>

            <div class="merchant-card">
                <img src="https://images.unsplash.com/photo-1552566626-52f8b828add9?w=200" alt="商家logo" class="merchant-logo">
                <div class="merchant-info">
                    <div class="merchant-name">川味小馆</div>
                    <div class="merchant-desc">营业时间：10:00-22:00</div>
                </div>
            </div>

            <div class="contact-section">
                <div class="section-title">
                    <i class="bi bi-telephone"></i>
                    联系方式
                </div>
                <div class="contact-item">
                    <div class="contact-info">
                        <div class="contact-icon">
                            <i class="bi bi-telephone"></i>
                        </div>
                        <div class="contact-text">商家电话</div>
                    </div>
                    <button class="contact-action">拨打</button>
                </div>
                <div class="contact-item">
                    <div class="contact-info">
                        <div class="contact-icon">
                            <i class="bi bi-shop"></i>
                        </div>
                        <div class="contact-text">门店地址</div>
                    </div>
                    <button class="contact-action">导航</button>
                </div>
            </div>

            <div class="contact-section">
                <div class="section-title">
                    <i class="bi bi-question-circle"></i>
                    常见问题
                </div>
                <div class="faq-item">
                    <div class="faq-question">
                        <span>如何修改订单？</span>
                        <i class="bi bi-chevron-down"></i>
                    </div>
                    <div class="faq-answer">
                        订单在商家接单前可以联系商家修改，接单后将无法修改订单内容。
                    </div>
                </div>
                <div class="faq-item">
                    <div class="faq-question">
                        <span>如何申请退款？</span>
                        <i class="bi bi-chevron-down"></i>
                    </div>
                    <div class="faq-answer">
                        在订单详情页点击"申请退款"，选择退款原因后提交即可。
                    </div>
                </div>
                <div class="faq-item">
                    <div class="faq-question">
                        <span>配送时间是多久？</span>
                        <i class="bi bi-chevron-down"></i>
                    </div>
                    <div class="faq-answer">
                        正常情况下配送时间为45分钟内，特殊天气可能会延长配送时间。
                    </div>
                </div>
                <div class="faq-item">
                    <div class="faq-question">
                        <span>可以加急配送吗？</span>
                        <i class="bi bi-chevron-down"></i>
                    </div>
                    <div class="faq-answer">
                        可以联系商家说明情况，商家会尽量安排优先配送。
                    </div>
                </div>
            </div>
        </div>

        <div class="bottom-bar">
            <button class="chat-button">
                <i class="bi bi-chat-dots"></i>
                在线咨询
            </button>
        </div>
    </div>

    <script>
        // FAQ展开/收起功能
        document.querySelectorAll('.faq-item').forEach(item => {
            item.addEventListener('click', function() {
                this.classList.toggle('active');
            });
        });
    </script>
</body>
</html> 